﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using 字符串处理工具.UserControlList;

namespace 字符串处理工具
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = new MainViewModel();
        }

        private void NavBar_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            DragMove();
        }




        /// <summary>
        /// 字符串格式化事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonClick_StringConvert(object sender, RoutedEventArgs e)
        {
            //绑定自定义控件
            contentControl.Content = new StringConvert();
        }

        /// <summary>
        /// 字符串列表排序
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonClick_StringListSort(object sender, RoutedEventArgs e)
        {
            //绑定自定义控件
            contentControl.Content = new StringListSort();
        }




    }
}
